﻿using Microsoft.EntityFrameworkCore.Migrations;

#nullable disable

namespace DAL.Migrations
{
    public partial class InitDB : Migration
    {
        protected override void Up(MigrationBuilder migrationBuilder)
        {
            migrationBuilder.CreateTable(
                name: "FangXing_Model",
                columns: table => new
                {
                    FXId = table.Column<int>(type: "int", nullable: false)
                        .Annotation("SqlServer:Identity", "1, 1"),
                    FXName = table.Column<string>(type: "nvarchar(max)", nullable: true),
                    FXTP = table.Column<string>(type: "nvarchar(max)", nullable: true),
                    ZT = table.Column<bool>(type: "bit", nullable: false),
                    Isfor = table.Column<bool>(type: "bit", nullable: false)
                },
                constraints: table =>
                {
                    table.PrimaryKey("PK_FangXing_Model", x => x.FXId);
                });

            migrationBuilder.CreateTable(
                name: "HuiYuan_Model",
                columns: table => new
                {
                    Id = table.Column<int>(type: "int", nullable: false)
                        .Annotation("SqlServer:Identity", "1, 1"),
                    Name = table.Column<string>(type: "nvarchar(max)", nullable: true),
                    Pwd = table.Column<string>(type: "nvarchar(max)", nullable: true)
                },
                constraints: table =>
                {
                    table.PrimaryKey("PK_HuiYuan_Model", x => x.Id);
                });
        }

        protected override void Down(MigrationBuilder migrationBuilder)
        {
            migrationBuilder.DropTable(
                name: "FangXing_Model");

            migrationBuilder.DropTable(
                name: "HuiYuan_Model");
        }
    }
}
